package com.myapplication.http;


import com.myapplication.bean.Banner;
import com.myapplication.bean.CommentBean;
import com.myapplication.bean.DeatilBanner1;
import com.myapplication.bean.ListBean;
import com.myapplication.bean.ShaiwuBean;
import com.myapplication.bean.Shop;
import com.myapplication.bean.ShopListBean;
import com.myapplication.bean.ZiXunBean;
import com.myapplication.config.HUrlConfig;
import com.myapplication.config.JUrlConfig;
import com.myapplication.ui.homefragment.shoefragment.ShoeBean;

import java.util.Map;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Path;
import retrofit2.http.QueryMap;

/**
 * Created by zitaojiang on 2016/10/7.
 */
public interface RetrofitService {

  //首页底部grideView的数据
  @GET(JUrlConfig.Path.SHOP_URL)
    Call<Shop> getShopData(@QueryMap Map<String,String> params);

//  @GET("apptools/productlist.aspx?act=getproductlist&v=34&pages=1&bc=0&sc=0&sorts=&channel=0&ckey=&daynews=&lprice=0&hprice=0&tbclass=0&actid=0&brandid=0&predate=2016-08-28+17%3A43%3A19&index=1")
//  Call<Shop> getShopData();

  //首页banner的数据
  @GET(JUrlConfig.Path.BANNER_URL)
  Call<Banner> getBannerData();

  //banner里面具体的数据
  @GET(JUrlConfig.Path.DETAIL_BANNER1_URL)
  Call<DeatilBanner1> getData_Banner1();

  @GET(JUrlConfig.Path.SHOE_URL)
  Call<ShoeBean> geData_Shoe();

  //晒物数据
  @GET(HUrlConfig.Path.SHAIWU_URL)
  Call<ShaiwuBean> getShaiWuData(@QueryMap() Map<String,String> params);
  //资讯数据
  @GET(HUrlConfig.Path.ZIXUN_URL)
  Call<ZiXunBean> getZiXunData(@QueryMap() Map<String,String> params);
  //清单数据
  @GET(HUrlConfig.Path.LIST_URL)
  Call<ListBean> getListData(@QueryMap() Map<String,String> params);
  //购物清单数据
  @GET("{type}")
  Call<ShopListBean> getShopListData(@Path("type") String type, @QueryMap Map<String,String> params);

  //评论http://app.huihui.cn/goods_list/1097/comments.json?page=1&platform=android
  @GET("{type}")
  Call<CommentBean> getCommentlistData(@Path("type") String type, @QueryMap Map<String,String> params);



}
